<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<base href="<%=basePath%>" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/css/user.css" />
	<jsp:include page="/jsp/common.jsp" />
	<script type="text/javascript">
	$().ready(function(){

		$(".updateForm").validate({
			rules: {
				password: {
					required: true,
					pattern: /^[^\s&\"<>]+$/,
					minlength: 4,
					maxlength: 20
				},
				rePassword: {
					required : true,
					equalTo : "#password"
				}
			}
		});
	});
	</script>
</head>
<body>
<jsp:include page="../header.jsp" />
<div class="content">
<div class="bar">
	<jsp:include page="./menu.jsp" />
	<div class="list_div_01 border_radius_3">
		<div class="list_title">修改密码</div>
		<form action="<%=basePath %>user/user_change_password.do" method="post" class="updateForm">
			<table>
				<tr>
					<th>当前密码:</th>
					<td><input name="passwd" type="password" class="text" maxlength="200"/></td>
				</tr>
				<tr>
					<th>新密码:</th>
					<td><input id="password" name="password" type="password" class="text" maxlength="200"/></td>
				</tr>
				<tr>
					<th>确认密码:</th>
					<td><input name="rePassword" type="password" class="text" maxlength="200"/></td>
				</tr>
				<tr>
					<th>&nbsp;</th>
					<td>
						<input type="submit" class="submit" value="提交" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
</div>
<jsp:include page="../footer.jsp" />
</body>
</html>